$(document).ready(function(){
	var loginChecker = setInterval(function(){
		$.ajax({url: "<?=Mozg::Router('http')->Create('module=admin&ctrl=users&action=check_login');?>",
				dataType: 'json',
				success:function (data){
							HandleResponseJSON(data, null, function(data){
								$('#statusBar').html(data);
								clearTimeout(loginChecker);
							});		
						}
		});
	}, 60000);	
});